from src.application.allowed_ip.dto.allowed_ip.allowed_ip import AllowedIpDTO
from src.domain.order.entities.allowed_ip import AllowedIpEntity


def convert_allowed_ip_entity_to_dto(allowed_ip: AllowedIpEntity) -> AllowedIpDTO:
    return AllowedIpDTO(tg_user_id=allowed_ip.tg_user_id, ip_address=allowed_ip.ip_address)
